const { promisify } = require("util");

module.exports.clone = async function (repo, desc) {
  const download = promisify(require("download-git-repo"));

  const ora = require("ora"); // 进度条
  const process = ora(`✈下载.......${repo}`);

  await process.start();
  await download(repo, desc);
  process.succeed();
};